package cn.jeasy.sample.service.impl;

import java.util.List;

import javax.annotation.Resource;

import cn.jeasy.core.bean.annotation.Service;
import cn.jeasy.sample.dao.UserMapper;
import cn.jeasy.sample.entity.User;
import cn.jeasy.sample.service.IUserService;

@Service
public class UserService implements IUserService {

	@Resource
	private UserMapper userDao;
	
	@Override
	public int insert(User u) {
		
		return userDao.insert(u);
	}

	@Override
	public int update(User u) {
		
		return userDao.update(u);
	}

	@Override
	public int delete(User u) {
		
		return userDao.delete(u);
	}

	@Override
	public User get(int id) {
	
		return userDao.get(id);
	}

	@Override
	public List<User> find(User u) {
		
		return userDao.find(u);
	}

}
